<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="conf" class="confInfo.ConfBean" scope= "session"></jsp:useBean>
<jsp:useBean id="constants" class="confInfo.Constants" scope="application"></jsp:useBean>
<%@ page import="util.*"%> 
<%
	//Thread.sleep(5000);
	Invoker t = new Invoker(constants.CREATE_PROJECT_BAT, constants.PROJECT_BASE);
	try {
		t.join();
	} catch (InterruptedException e) {
		e.printStackTrace();
	}
	System.out.println("create scrapy project ok!");
	conf.generate();
	constants.status = "generate codes done, wait for test or run...";
%>
<jsp:forward page="webscrapy.jsp"></jsp:forward>
</body>
</html>